package com.jiai.cloud.web;


import com.jiai.cloud.feign.GoldAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


/**
 * Created by Administrator on 2017/6/1.
 */
@Controller
public class LoginController {

    //登录页面
    @RequestMapping("/login" )
    public Object loginPage(ModelAndView model){
       model.setViewName("login/login");
           return  model;
    }
    //注册页面
    @RequestMapping("/register" )
    public Object registerPage(ModelAndView model){
        model.setViewName("login/index");
        return  model;
    }

}
